﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using MailChimp4Umbraco.Businesslogic.ChimpAPI;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace MailChimp4Umbraco.Tests
{
    
    [TestClass]
    public class CommunicatorTests
    {
        private const string apiKey = "e30aebdd6383b1ed53f25424d049146f-us1";

        [TestMethod]
        public void MailChimpCommunicator_AddSubscriber_ExpectSuccess()
        {
            MailChimpCommunicator communicator = new MailChimpCommunicator(apiKey);
            MailChimpResponse response = communicator.AddSubscriber("123","thomas@mediaworkers.dk", "212.130.47.201", "Firstname", "Lastname");
            
            Assert.IsTrue(response.IsSuccess);
        }


    }
}
